<template>
  <div>
    <router-view />
    <van-tabbar v-model="active" safe-area-inset-bottom>
      <van-tabbar-item icon="home-o" replace to="/register">首页</van-tabbar-item>
      <van-tabbar-item icon="search" replace to="/login">标签</van-tabbar-item>
      <van-tabbar-item icon="friends-o">标签</van-tabbar-item>
      <van-tabbar-item icon="setting-o">标签</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
import Vue from "vue";
import { Tabbar, TabbarItem } from "vant";

Vue.use(Tabbar);
Vue.use(TabbarItem);
export default {
  data() {
    return {
      active: 0
    };
  }
};
</script>

<style>

</style>